package cn.stylefeng.guns.modular.system.enums;

import lombok.Getter;
import com.alibaba.fastjson.annotation.JSONType;
import com.fasterxml.jackson.annotation.JsonFormat;
/**
 * @ClassName TestEnum
 * @Author lzy
 * @Date 2020/1/15 10:47
 * @VERSION 1.0
 **/
@Getter
@JSONType(serializeEnumAsJavaBean = true)
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum TestEnum implements CodeEnum{
    MAN(0, "男"), WOMAN(1, "女");
            ;

    private Integer code;
    private String msg;


    TestEnum(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }
}
